// Copyright © 2023 ycq_work@163.com. All rights reserved.

/**
 * @Author: ycq_work@163.com
 * @DATE: 2023/10/13
 * @Description: 获取本地歌曲信息, 发送给主界面
*/

#ifndef LOCAL_H
#define LOCAL_H

#include <QThread>
#include <QDir>
#include <QFileInfo>

class Local : QThread
{
    Q_OBJECT

public:
    explicit Local(QObject *parent = nullptr);

    QList<QFileInfo> scan(const QString& directoryPath, const QStringList& filters);

private:
    bool isAudioFile(const QString& filePath);
};

#endif //LOCAL_H
